package com.mly.data.algo.designMode.State;

public class CGold extends CState {
    public double travel(int miles,FrequentFlyer context){
        if(context.flyMiles >=25000 && context.flyMiles <=50000){
            context.setState(new CSilver());
        }
        if(context.flyMiles < 25000){
            context.setState(new CBasic());
        }
        return miles;
    }
}
